#ifndef __FUN_H__
#define __FUN_H__

#include "hscuda_rasterdata.h"

template<typename DataType>
void printmat(const hs::raster::RasterView<DataType>& mat)
{
    for (int y = 0; y < mat.sizeY(); ++y) {
        for (int x = 0; x < mat.sizeX(); ++x) {
            printf("%6.0f", mat(x, y));
        }
        std::cout << std::endl;
    }
    std::cout << std::endl;
}

/**
 * @brief 测试 MIMO
 * 
 * @param host_mat_a 
 * @param host_mat_b 
 * @param host_mat_c 
 * @param host_mat_d 
 */
void testOddEven(const hs::raster::RasterData<float> & host_mat_a, const hs::raster::RasterData<float> & host_mat_b, hs::raster::RasterData<float> & host_mat_c, hs::raster::RasterData<float> & host_mat_d);

#endif
